package com.wanxi.spring.cloud.team.feign.impl;

import com.wanxi.spring.cloud.team.feign.UserService;
import com.wanxi.spring.cloud.team.model.User;
import com.wanxi.spring.cloud.team.model.UserRole;
import org.springframework.stereotype.Component;

@Component
public class UserFallbackService implements UserService {
    @Override
    public User selectUserById(int id) {
        System.out.println("request fail");
        return null;
    }

    @Override
    public User getUserByName(String code) {
        System.out.println("request fail");
        return null;
    }

    @Override
    public int updateUserRole(UserRole userRole) {
        System.out.println("request fail");
        return 0;
    }
}
